import bianliang from "./bianliang.js";

class BackGround {
	constructor() {
		this.x = 0;
		this.y = -850;
		this.img = bianliang.resObj[0];
	}
	move(){
		this.y+=25; 
		if(this.y>=0){
			this.y = -850;
		}
	}
	draw(ctx){
		this.move();
		ctx.drawImage(this.img,this.x,this.y);
	}
}
export default BackGround;